import {  reactive, onMounted, onUnmounted } from "vue";
export default function get() {
    let point = reactive({
        x: 0,
        y: 0,
    });
    function getClick(event) {
        point.x = event.x;
        point.y = event.y;
    }
    onMounted(() => {
        window.addEventListener("click", getClick);
    });
    onUnmounted(() => {
        window.removeEventListener("click", getClick);
    })

    return point

}